package com.example.pocket_demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pocket_demo.entity.Pocket;
import com.example.pocket_demo.entity.Record;
import com.example.pocket_demo.entity.vo.RecordVO;

import java.math.BigDecimal;
import java.util.List;

/**
* @author 52656
* @description 针对表【pocket】的数据库操作Service
* @createDate 2023-04-13 16:47:29
*/
public interface PocketService extends IService<Pocket> {
    BigDecimal getBalance(Integer userId) throws Exception;
    BigDecimal consume(Integer userId,BigDecimal amount) throws Exception;
    BigDecimal refund(Integer userId,BigDecimal amount) throws Exception;
    List<RecordVO> listIncomeRefund(Integer pocketid, Integer page, Integer pageSize);
}
